package com.uubx.service.impl;

import com.uubx.mapper.PolicyMapper;
import com.uubx.pojo.Policy;
import com.uubx.service.PolicyService;
import com.uubx.vo.PolicyListVo;
import com.uubx.vo.PolicyVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author wyy
 * @Date 2020/12/29 12:24
 * @Version 1.0
 */
@Service
public class PolicyServiceImpl implements PolicyService {

    @Autowired
    private PolicyMapper policyMapper;

    @Override
    public List<Map> findGoodsWhere(PolicyVo policyVo) {
        return policyMapper.findPolicyWhere(policyVo);
    }

    @Override
    public PolicyListVo findPolicyById(Long id) {

        return policyMapper.findPolicyById(id);
    }


}
